package com.gitee.simons.common.constant;

import com.google.gson.reflect.TypeToken;

import java.lang.reflect.Type;
import java.util.List;
import java.util.Set;

/**
 * @author jsm
 * @date 2018/12/3 17:20
 * @Description
 */
public class TypeTokenConstant {

    /**
     * listString转化化token
     */
    public static final Type STRING_TYPE =  new TypeToken<List<String>>(){}.getType();

    /**
     * listLong转化化token
     */
    public static final Type LONG_TYPE =  new TypeToken<List<Long>>(){}.getType();

    /**
     *SetLong转化化token
     */
    public static final Type LONG_TYPE_SET =  new TypeToken<Set<Long>>(){}.getType();

    /**
     *SetString转化化token
     */
    public static final Type STRING_TYPE_SET =  new TypeToken<Set<String>>(){}.getType();
}
